package com.leigang.java.code.design.mode.proxy.statics;

/**
 * @author leig-a
 * @version 1.0
 * @desc
 * @date 2022/6/16 17:21
 */
public class CarSystemProxy implements CarInterfaces {
    Car car;

    @Override
    public void run() {
        System.out.println("before car run");
        if (car == null) {
            car = new Car();
        }
        car.run();
        System.out.println("after car run");
    }
}
